package com.risen.project.common;

import lombok.Getter;

/**
 * @author: taoym
 * @date: 2021/4/12 22:50
 * @desc: 异常信息
 */
@Getter
public class ExceptionCore extends RuntimeException {

    private final ResponseStatusCode responseStatusCode;
    private final String message;

    public ExceptionCore(ResponseStatusCode responseStatusCode) {
        this.responseStatusCode = responseStatusCode;
        this.message = "";
    }

    public ExceptionCore(String message) {
        this.message = message;
        this.responseStatusCode = null;
    }
}
